@model IEnumerable<GottaGottaScrum.Models.WorkItem>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            AreaPath
        </th>
        <th>
            IterationPath
        </th>
        <th>
            Revision
        </th>
        <th>
            Priority
        </th>
        <th>
            Severity
        </th>
        <th>
            StackRank
        </th>
        <th>
            Project
        </th>
        <th>
            AssignedTo
        </th>
        <th>
            CreatedDate
        </th>
        <th>
            CreatedBy
        </th>
        <th>
            ChangedDate
        </th>
        <th>
            ChangedBy
        </th>
        <th>
            ResolvedBy
        </th>
        <th>
            Title
        </th>
        <th>
            State
        </th>
        <th>
            Type
        </th>
        <th>
            Reason
        </th>
        <th>
            Description
        </th>
        <th>
            ReproSteps
        </th>
        <th>
            FoundInBuild
        </th>
        <th>
            IntegratedInBuild
        </th>
        <th>
            WebEditorUrl
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@item.AreaPath
        </td>
        <td>
			@item.IterationPath
        </td>
        <td>
			@item.Revision
        </td>
        <td>
			@item.Priority
        </td>
        <td>
			@item.Severity
        </td>
        <td>
			@item.StackRank
        </td>
        <td>
			@item.Project
        </td>
        <td>
			@item.AssignedTo
        </td>
        <td>
			@String.Format("{0:g}", item.CreatedDate)
        </td>
        <td>
			@item.CreatedBy
        </td>
        <td>
			@String.Format("{0:g}", item.ChangedDate)
        </td>
        <td>
			@item.ChangedBy
        </td>
        <td>
			@item.ResolvedBy
        </td>
        <td>
			@item.Title
        </td>
        <td>
			@item.State
        </td>
        <td>
			@item.Type
        </td>
        <td>
			@item.Reason
        </td>
        <td>
			@item.Description
        </td>
        <td>
			@item.ReproSteps
        </td>
        <td>
			@item.FoundInBuild
        </td>
        <td>
			@item.IntegratedInBuild
        </td>
        <td>
			@item.WebEditorUrl
        </td>
    </tr>
}

</table>


